package com.zengzhuo.mutithread.basic.create;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 1.2.2
 */
public class StackAreaDemo {

    private static Logger log = LoggerFactory.getLogger(StackAreaDemo.class);

    public static void main(String[] args) throws InterruptedException {
      log.info("当前线程名称：{}",Thread.currentThread().getName());
      log.info("当前线程ID:{}",Thread.currentThread().getId());
      log.info("当前线程状态:{}",Thread.currentThread().getState());
      log.info("当前线程优先级:{}",Thread.currentThread().getPriority());
      int a = 1, b = 1;
      int c = a / b;
      anotherFun();
      Thread.sleep(10000000);
    }

    private static void anotherFun(){
        int a = 1 , b = 1;
        int c = a / b;
    }

    private static void anotherFun2(){
        int a = 1 , b = 1;
        int c = a / b;
    }
}
